package com.eascs.account.controller;

import com.eascs.account.service.AccountService;
import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.site.view.BaseRestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/account")
public class AccountRestController {
	@Autowired
	private AccountService accountService;

	private static Logger log = LoggerFactory.getLogger(AccountRestController.class);
	
	@RequestMapping("/init/loan")
	public BaseRestResult<String>  loan() {
		accountService.initLoanAccount();
		return BaseRestResult.info("初始化贷款单账户成功");
	}


}
